package com.molihub.entity;

import java.time.LocalDateTime;
import java.io.Serializable;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;

/**
 * (Visitor)实体类
 *
 * @author 莫提
 * @since 2020-02-16 14:18:49
 */
@AllArgsConstructor
@Data
@Builder
public class Visitor implements Serializable {
    private static final long serialVersionUID = 303839114311002452L;
    /**
    * 访问编号
    */
    private Integer id;
    /**
    * 访者IP
    */
    private String ip;
    /**
    * 访者ID
    */
    private Integer visitorId;
    /**
    * 被访者ID
    */
    private Integer userId;
    /**
    * 访问类型
    */
    private Integer type;
    /**
    * 文章ID
    */
    private Integer articleId;
    /**
    * 访问时间
    */
    private LocalDateTime time;
    /**
    * IP的国家
    */
    private String country;
    /**
     * IP的省份
     */
    private String region;
    /**
     * IP的城市
     */
    private String city;
    /**
     * IP的运营商
     */
    private String isp;

}